package com.linsen.core.mybatisplus.props;

import com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhaoyong
 * @date 2023/3/20
 */
@Data
@RefreshScope
@ConfigurationProperties(prefix = "linsen.mybatis-plus")
public class LinsenMyBatisPlusProperties {
    private Boolean metaObjectHandler = Boolean.TRUE;

    private Boolean tenantLineHandler = Boolean.FALSE;

    private List<String> tenantLineHandlerIgnoreTables = new ArrayList<>();
}
